package com.ums.scumspay.bigdataimport.Util;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
/**
 * 类名 StringProperityUtils
 * 作者 LYC
 * 时间 2022.09.08 2022/9/8 15:15
 * 描述：
 */
public class StringProperityUtils {
    public String getPropertys(String url,String typeName){
        Properties prop = new Properties();
        InputStreamReader stream = null;
        String tye ="";
        try {
            stream = new InputStreamReader( this.getClass().getResourceAsStream(url),"UTF-8");
        } catch (UnsupportedEncodingException e1) {
            // TODO Auto-generated catch block
            e1.printStackTrace();
        }
        try {
            prop.load(stream);
            tye = prop.getProperty(typeName);

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return tye;
    }
}